Skip to content

fix driveside detection of files in conflicting overrides check#495

Merged
jflann merged 7 commits into
NAMTeam:stagingfrom
memo33:driveside-fix
Jan 14, 2025
Merged

fix driveside detection of files in conflicting overrides check#495
jflann merged 7 commits into
NAMTeam:stagingfrom
memo33:driveside-fix

Conversation

@memo33

@memo33 memo33 commented Jan 12, 2025

Copy link
Copy Markdown
Collaborator

The conflicting overrides checker from #494 didn't correctly identify LHD and RHD files. Effectively, all files were treated as driveside-independent, leading to incorrect "conflicts" between RHD and LHD files. This PR fixes that.

This removes a lot of conflicting-override tags that were erroneously added due to incorrect distinction between RHD/LHD files.

Found 93436 conflicting RUL2 overrides (removed 3423, added 90).

The changes almost exclusively affect RHD files. The RHD files came alphabetically after the LHD, so previously the RHD rules would be marked as conflicting.

Additionally, this PR fixes all driveside-independent rules that are conflicting in RHD but not in LHD or vice versa. These would be tagged by conflicting-override_rhd or conflicting-override_lhd. Introducing new conflicts of this type to the repository should be avoided, as it means the driveside-independent rules aren't actually driveside-independent but only have an effect for one of the drivesides.

memo33 added 7 commits January 8, 2025 19:19
This removes a lot of `conflicting-overrides` tags that were erroneously added due to incorrect distinction between RHD/LHD files.

    Found 93436 conflicting RUL2 overrides (removed 3423, added 90).

The changes almost exclusively affect RHD files. The RHD files came alphabetically after the LHD, so previously the RHD rules would be marked as conflicting.

Some exceptions:

- driveside-independent files: some rules are newly conflicting with RHD rules (previously those RHD rules had been "conflicting" with LHD rules). Usually, these rules are copies of LHD rules, which explains the conflict.
- 2 LHD files are affected: in both cases, the affected rules are also contained in RHD files that are loaded earlier.

All in all, the changes look plausible.
This adds `conflicting-override-rhd` or `conflicting-override-lhd` tags
when a driveside-independent rule conflicts with just RHD or LHD rules.
The correct rules are copied from the following files, which seem to
duplicate some of these rules:

    Controller/RUL2/07_RHW/Sec7b_BaseNetwork/T01A_Road_ThruT_OxO.txt
    Controller/RUL2/07_RHW/Sec7b_BaseNetwork/T01B_Road_ThruT_OxO.txt
…flicts)

The previous conflicts are now duplicates only.
@memo33 memo33 mentioned this pull request Jan 12, 2025
11 tasks
@jflann

jflann commented Jan 14, 2025

Copy link
Copy Markdown
Member

Thanks for the fix.

@jflann jflann merged commit 9ac972a into NAMTeam:staging Jan 14, 2025
@memo33 memo33 deleted the driveside-fix branch June 3, 2025 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants